<?php

require_once 'db.php';




$name = "";
$email = "";
$phone = "";
$skype = "";
$twitter = "";
$org = "";
$location = "";
$kreoyl = 0;
$english = 0;
$french = 0;
$previous_work = "";
$new_work = "";

//print_r($_POST);




if(isset($_POST['previous_work'])) {
    $previous_work = $_POST['previous_work'];   
}

if(isset($_POST['new_work'])) {
    $new_work = $_POST['new_work'];   
}

if(isset($_POST['phone'])) {
    $phone = $_POST['phone'];   
}

if(isset($_POST['skype'])) {
    $skype = $_POST['skype'];   
}

if(isset($_POST['twitter'])) {
    $twitter = $_POST['twitter'];   
}

if(isset($_POST['org'])) {
    $org = $_POST['org'];   
}

if(isset($_POST['location'])) {
    $location = $_POST['location'];   
}

if(isset($_POST['kreoyl'])) {
    $kreoyl = $_POST['kreoyl'];   
}

if(isset($_POST['english'])) {
    $english = $_POST['english'];   
}

if(isset($_POST['french'])) {
    $french = $_POST['french'];   
}

if(isset($_POST['name'])) {
    $name = $_POST['name'];   
}

if(isset($_POST['email'])) {
   $email = $_POST['email'];
  
}

insert_email($email,$name,$phone,$skype,$twitter,$org,$location,$kreoyl,$english,$french, $previous_work, $new_work);



header('Location: search_post.php?email=1');


?>